<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
	//前台路由组
		//主页	
		Route::get('/','Home\IndexController@index');

		//注册登录管理路由
		Route::controller('/home/login','Home\LoginController');
		//购物车管理路由
		Route::controller('/home/cart','Home\CartController');
		//商品管理路由
		Route::controller('/home/good','Home\GoodController');
		//订单管理路由
		Route::controller('/home/order','Home\OrderController');
		//用户管理路由
		Route::controller('/home/user','Home\UserController');
		//验证码
		Route::get('/Vcode','Home\LoginController@Vcode');
		//发送ajax获取验证码
		Route::get('/SendCode','Home\LoginController@SendCode');
	//后台路由组
		
		Route::group(['middleware'=>'logins'],function()
		{

			Route::get('/admin','Admin\IndexController@index');
			//用户管理路由
			Route::controller('/admin/user','Admin\UserController');
			//类别管理路由
			Route::controller('/admin/cate','Admin\CateController');
			//商品管理路由
			Route::controller('/admin/good','Admin\GoodController');
			//轮播图管理路由
			Route::controller('/admin/rotate','Admin\RotateController');
		});

			//注册登录管理路由
			Route::controller('/admin/login','Admin\LoginController');
		
  